package com.elitel.frame.base.service.impl.lx;

import java.util.List;
import java.util.Map;

public class ResultCommonVo {
    /**
     * 返回对象结果  单个
     * */
    public static class ResultObj{
        private String code;
        private String msg;
        private Object data;


        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public Object getData() {
            return data;
        }

        public void setData(Object data) {
            this.data = data;
        }

    }
    /**
     * 返回实体结果  单个
     * */
    public static class ResultModel<T>{
        // 返回码
        private String code ;
        // 接口执行情况说明信息
        private String msg ;
        // 单个对象
        private T data ;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public T getData() {
            return data;
        }

        public void setData(T data) {
            this.data = data;
        }

    }
    /**
     * 通用集合结果实体  全部返回
     * */
    public static class ResultListInfo<T>{
        // 返回码
        public String code ;
        // 接口执行情况说明信息
        public String msg ;
        // 对象列表
        public List<T> data ;




        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public List<T> getData() {
            return data;
        }

        public void setData(List<T> data) {
            this.data = data;
        }

    }
    /**
     * 通用分页结果实体  分页返回
     * */
    public static class ResultPageInfo<T>{
        // 返回码
        private String code ;
        // 接口执行情况说明信息
        private String msg ;
        // 查询数据记录总数
        private long total;

        // 分页对象
        private List<T> data ;

        private Object  extData;

        public Object getExtData() {
            return extData;
        }

        public void setExtData(Object extData) {
            this.extData = extData;
        }





        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public long getTotal() {
            return total;
        }

        public void setTotal(long total) {
            this.total = total;
        }

        public List<T> getData() {
            return data;
        }

        public void setData(List<T> data) {
            this.data = data;
        }


    }

    /**
     * 通用分页结果实体  分页返回
     * */
    public static class ResultPageInfomap<T>{
        // 返回码
        private String code ;
        // 接口执行情况说明信息
        private String msg ;
        // 查询数据记录总数
        private long total;
        // 分页对象
        private List<Map> data ;



        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public long getTotal() {
            return total;
        }

        public void setTotal(long total) {
            this.total = total;
        }

        public List<Map> getData() {
            return data;
        }

        public void setData(List<Map> data) {
            this.data = data;
        }



    }

}
